home *** CD-ROM | disk | FTP | other *** search
/ Comix Games / Comix Games.iso / jetsons / jetsons.exe / jetsons.dxr / 00070.ls < prev    next >
Encoding:
Text File  |  1996-11-19  |  1.8 KB  |  63 lines

  1. on DoClock
  2.   global theSecondsLeft, theFirstClockChannel, theLastClockChannel, theGameOver, theWonLastGame
  3.   if theGameOver = 1 then
  4.     return 
  5.   end if
  6.   set theSecondsLeft to theSecondsLeft - 1
  7.   if theSecondsLeft < 0 then
  8.     puppetSound(3, 0)
  9.     puppetSound(1, "Late")
  10.     set theGameOver to 1
  11.     HideAllSprites()
  12.     set theWonLastGame to 0
  13.     go("Lose")
  14.   else
  15.     repeat with h = theFirstClockChannel to theLastClockChannel
  16.       if h = theFirstClockChannel then
  17.         set value to theSecondsLeft / 10
  18.       else
  19.         set value to theSecondsLeft - (theSecondsLeft / 10 * 10)
  20.       end if
  21.       if value = 0 then
  22.         set the memberNum of sprite h to the number of member "Zero"
  23.         next repeat
  24.       end if
  25.       if value = 1 then
  26.         set the memberNum of sprite h to the number of member "One"
  27.         next repeat
  28.       end if
  29.       if value = 2 then
  30.         set the memberNum of sprite h to the number of member "Two"
  31.         next repeat
  32.       end if
  33.       if value = 3 then
  34.         set the memberNum of sprite h to the number of member "Three"
  35.         next repeat
  36.       end if
  37.       if value = 4 then
  38.         set the memberNum of sprite h to the number of member "Four"
  39.         next repeat
  40.       end if
  41.       if value = 5 then
  42.         set the memberNum of sprite h to the number of member "Five"
  43.         next repeat
  44.       end if
  45.       if value = 6 then
  46.         set the memberNum of sprite h to the number of member "Six"
  47.         next repeat
  48.       end if
  49.       if value = 7 then
  50.         set the memberNum of sprite h to the number of member "Seven"
  51.         next repeat
  52.       end if
  53.       if value = 8 then
  54.         set the memberNum of sprite h to the number of member "Eight"
  55.         next repeat
  56.       end if
  57.       if value = 9 then
  58.         set the memberNum of sprite h to the number of member "Nine"
  59.       end if
  60.     end repeat
  61.   end if
  62. end
  63.